Skip to content

[SPARK-31275][WEBUI] Improve the metrics format in ExecutionPage for StageId.#28039

Closed
sarutak wants to merge 1 commit intoapache:masterfrom
sarutak:improve-metrics-format
Closed

[SPARK-31275][WEBUI] Improve the metrics format in ExecutionPage for StageId.#28039
sarutak wants to merge 1 commit intoapache:masterfrom
sarutak:improve-metrics-format

Conversation

@sarutak
Copy link
Member

@sarutak sarutak commented Mar 26, 2020

What changes were proposed in this pull request?

In ExecutionPage, metrics format for stageId, attemptId and taskId are displayed like (stageId (attemptId): taskId) for now.
I changed this format like (stageId.attemptId taskId).

Why are the changes needed?

As @cloud-fan suggested here, stageId.attemptId is more standard in Spark.

Does this PR introduce any user-facing change?

Yes. Before applying this change, we can see the UI like as follows.
with-checked

And after this change applied, we can like as follows.
fix-merics-format-with-checked

How was this patch tested?

Modified SQLMetricsSuite and manual test.

@SparkQA
Copy link

SparkQA commented Mar 26, 2020

Test build #120436 has finished for PR 28039 at commit 006cdf3.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@cloud-fan
Copy link
Contributor

LGTM, cc @tgravescs @gengliangwang

Copy link
Member

@gengliangwang gengliangwang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks for the work!

@cloud-fan
Copy link
Contributor

I'm merging it (master and 3.0) to unblock #28037 , thanks!

@cloud-fan cloud-fan closed this in bc37fdc Mar 27, 2020
cloud-fan pushed a commit that referenced this pull request Mar 27, 2020
…StageId

### What changes were proposed in this pull request?

In ExecutionPage, metrics format for stageId, attemptId and taskId are displayed like `(stageId (attemptId): taskId)` for now.
I changed this format like `(stageId.attemptId taskId)`.

### Why are the changes needed?

As cloud-fan suggested  [here](#27927 (comment)), `stageId.attemptId` is more standard in Spark.

### Does this PR introduce any user-facing change?

Yes. Before applying this change, we can see the UI like as follows.
![with-checked](https://user-images.githubusercontent.com/4736016/77682421-42a6c200-6fda-11ea-92e4-e9f4554adb71.png)

And after this change applied, we can like as follows.
![fix-merics-format-with-checked](https://user-images.githubusercontent.com/4736016/77682493-61a55400-6fda-11ea-801f-91a67da698fd.png)

### How was this patch tested?

Modified `SQLMetricsSuite` and manual test.

Closes #28039 from sarutak/improve-metrics-format.

Authored-by: Kousuke Saruta <sarutak@oss.nttdata.com>
Signed-off-by: Wenchen Fan <wenchen@databricks.com>
(cherry picked from commit bc37fdc)
Signed-off-by: Wenchen Fan <wenchen@databricks.com>
sjincho pushed a commit to sjincho/spark that referenced this pull request Apr 15, 2020
…StageId

### What changes were proposed in this pull request?

In ExecutionPage, metrics format for stageId, attemptId and taskId are displayed like `(stageId (attemptId): taskId)` for now.
I changed this format like `(stageId.attemptId taskId)`.

### Why are the changes needed?

As cloud-fan suggested  [here](apache#27927 (comment)), `stageId.attemptId` is more standard in Spark.

### Does this PR introduce any user-facing change?

Yes. Before applying this change, we can see the UI like as follows.
![with-checked](https://user-images.githubusercontent.com/4736016/77682421-42a6c200-6fda-11ea-92e4-e9f4554adb71.png)

And after this change applied, we can like as follows.
![fix-merics-format-with-checked](https://user-images.githubusercontent.com/4736016/77682493-61a55400-6fda-11ea-801f-91a67da698fd.png)

### How was this patch tested?

Modified `SQLMetricsSuite` and manual test.

Closes apache#28039 from sarutak/improve-metrics-format.

Authored-by: Kousuke Saruta <sarutak@oss.nttdata.com>
Signed-off-by: Wenchen Fan <wenchen@databricks.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

Comments